package com.foreknow.demo9;

public class Bird {
    private String name;//名字
    private String color;//颜色

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public void eat(){
        System.out.println(this.getName()+"鸟正在吃东西....");
    }
}
